package com.hbnu.pojo;

public class User {
    private String addr;
    private int id;
    private String name;

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    private double salary;

    public String getAddr() {
        return addr;
    }

    public User setAddr(String addr) {
        this.addr = addr;
        return this;
    }



    public int getId() {
        return id;
    }

    public User setId(int id) {
        this.id = id;
        return this;
    }

    public String getName() {
        return name;
    }

    public User setName(String name) {
        this.name = name;
        return this;
    }

//    @Override
//    public String toString() {
//        return "User{" +
//                "id=" + id +
//                ", name='" + name + '\'' +
//                ", addr='" + addr + '\'' +
//                '}';
//    }

    @Override
    public String toString() {
        return "User{" +
                "addr='" + addr + '\'' +
                ", id=" + id +
                ", name='" + name + '\'' +
                ", salary=" + salary +
                '}';
    }
}
